Optimal. Leaf size=239 \[ -\frac {x \left (-5 x^2 (7 d+28 f+64 h)+59 d+380 f+848 h\right )}{3456 \left (x^4-5 x^2+4\right )}+\frac {x \left (-\left (x^2 (5 d+8 f+20 h)\right )+17 d+20 f+32 h\right )}{144 \left (x^4-5 x^2+4\right )^2}-\frac {\tanh ^{-1}\left (\frac {x}{2}\right ) (313 d+820 f+1936 h)}{20736}+\frac {1}{648} \tanh ^{-1}(x) (13 d+25 f+61 h)-\frac {1}{162} \log \left (1-x^2\right ) (2 e+5 g+11 i)+\frac {1}{162} \log \left (4-x^2\right ) (2 e+5 g+11 i)-\frac {\left (5-2 x^2\right ) (2 e+5 g+11 i)}{108 \left (x^4-5 x^2+4\right )}+\frac {-\left (x^2 (2 e+5 g+17 i)\right )+5 e+8 g+20 i}{36 \left (x^4-5 x^2+4\right )^2} \]
________________________________________________________________________________________
Rubi [A] time = 0.34, antiderivative size = 239, normalized size of antiderivative = 1.00, number of steps used = 13, number of rules used = 11, integrand size = 38, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.290, Rules used = {1673, 1678, 1178, 1166, 207, 1663, 1660, 12, 614, 616, 31} \begin {gather*} -\frac {x \left (-5 x^2 (7 d+28 f+64 h)+59 d+380 f+848 h\right )}{3456 \left (x^4-5 x^2+4\right )}+\frac {x \left (x^2 (-(5 d+8 f+20 h))+17 d+20 f+32 h\right )}{144 \left (x^4-5 x^2+4\right )^2}-\frac {\tanh ^{-1}\left (\frac {x}{2}\right ) (313 d+820 f+1936 h)}{20736}+\frac {1}{648} \tanh ^{-1}(x) (13 d+25 f+61 h)-\frac {\left (5-2 x^2\right ) (2 e+5 g+11 i)}{108 \left (x^4-5 x^2+4\right )}+\frac {x^2 (-(2 e+5 g+17 i))+5 e+8 g+20 i}{36 \left (x^4-5 x^2+4\right )^2}-\frac {1}{162} \log \left (1-x^2\right ) (2 e+5 g+11 i)+\frac {1}{162} \log \left (4-x^2\right ) (2 e+5 g+11 i) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 31
Rule 207
Rule 614
Rule 616
Rule 1166
Rule 1178
Rule 1660
Rule 1663
Rule 1673
Rule 1678
Rubi steps
\begin {align*} \int \frac {d+e x+f x^2+g x^3+h x^4+46 x^5}{\left (4-5 x^2+x^4\right )^3} \, dx &=\int \frac {x \left (e+g x^2+46 x^4\right )}{\left (4-5 x^2+x^4\right )^3} \, dx+\int \frac {d+f x^2+h x^4}{\left (4-5 x^2+x^4\right )^3} \, dx\\ &=\frac {x \left (17 d+20 f+32 h-(5 d+8 f+20 h) x^2\right )}{144 \left (4-5 x^2+x^4\right )^2}-\frac {1}{144} \int \frac {-19 d+20 f+32 h+5 (5 d+8 f+20 h) x^2}{\left (4-5 x^2+x^4\right )^2} \, dx+\frac {1}{2} \operatorname {Subst}\left (\int \frac {e+g x+46 x^2}{\left (4-5 x+x^2\right )^3} \, dx,x,x^2\right )\\ &=\frac {920+5 e+8 g-(782+2 e+5 g) x^2}{36 \left (4-5 x^2+x^4\right )^2}+\frac {x \left (17 d+20 f+32 h-(5 d+8 f+20 h) x^2\right )}{144 \left (4-5 x^2+x^4\right )^2}-\frac {x \left (59 d+380 f+848 h-5 (7 d+28 f+64 h) x^2\right )}{3456 \left (4-5 x^2+x^4\right )}+\frac {\int \frac {3 (173 d+260 f+656 h)+15 (7 d+28 f+64 h) x^2}{4-5 x^2+x^4} \, dx}{10368}-\frac {1}{36} \operatorname {Subst}\left (\int \frac {3 (506+2 e+5 g)}{\left (4-5 x+x^2\right )^2} \, dx,x,x^2\right )\\ &=\frac {920+5 e+8 g-(782+2 e+5 g) x^2}{36 \left (4-5 x^2+x^4\right )^2}+\frac {x \left (17 d+20 f+32 h-(5 d+8 f+20 h) x^2\right )}{144 \left (4-5 x^2+x^4\right )^2}-\frac {x \left (59 d+380 f+848 h-5 (7 d+28 f+64 h) x^2\right )}{3456 \left (4-5 x^2+x^4\right )}-\frac {1}{12} (506+2 e+5 g) \operatorname {Subst}\left (\int \frac {1}{\left (4-5 x+x^2\right )^2} \, dx,x,x^2\right )+\frac {1}{648} (-13 d-25 f-61 h) \int \frac {1}{-1+x^2} \, dx+\frac {(313 d+820 f+1936 h) \int \frac {1}{-4+x^2} \, dx}{10368}\\ &=\frac {920+5 e+8 g-(782+2 e+5 g) x^2}{36 \left (4-5 x^2+x^4\right )^2}+\frac {x \left (17 d+20 f+32 h-(5 d+8 f+20 h) x^2\right )}{144 \left (4-5 x^2+x^4\right )^2}-\frac {(506+2 e+5 g) \left (5-2 x^2\right )}{108 \left (4-5 x^2+x^4\right )}-\frac {x \left (59 d+380 f+848 h-5 (7 d+28 f+64 h) x^2\right )}{3456 \left (4-5 x^2+x^4\right )}-\frac {(313 d+820 f+1936 h) \tanh ^{-1}\left (\frac {x}{2}\right )}{20736}+\frac {1}{648} (13 d+25 f+61 h) \tanh ^{-1}(x)-\frac {1}{54} (-506-2 e-5 g) \operatorname {Subst}\left (\int \frac {1}{4-5 x+x^2} \, dx,x,x^2\right )\\ &=\frac {920+5 e+8 g-(782+2 e+5 g) x^2}{36 \left (4-5 x^2+x^4\right )^2}+\frac {x \left (17 d+20 f+32 h-(5 d+8 f+20 h) x^2\right )}{144 \left (4-5 x^2+x^4\right )^2}-\frac {(506+2 e+5 g) \left (5-2 x^2\right )}{108 \left (4-5 x^2+x^4\right )}-\frac {x \left (59 d+380 f+848 h-5 (7 d+28 f+64 h) x^2\right )}{3456 \left (4-5 x^2+x^4\right )}-\frac {(313 d+820 f+1936 h) \tanh ^{-1}\left (\frac {x}{2}\right )}{20736}+\frac {1}{648} (13 d+25 f+61 h) \tanh ^{-1}(x)-\frac {1}{162} (-506-2 e-5 g) \operatorname {Subst}\left (\int \frac {1}{-4+x} \, dx,x,x^2\right )-\frac {1}{162} (506+2 e+5 g) \operatorname {Subst}\left (\int \frac {1}{-1+x} \, dx,x,x^2\right )\\ &=\frac {920+5 e+8 g-(782+2 e+5 g) x^2}{36 \left (4-5 x^2+x^4\right )^2}+\frac {x \left (17 d+20 f+32 h-(5 d+8 f+20 h) x^2\right )}{144 \left (4-5 x^2+x^4\right )^2}-\frac {(506+2 e+5 g) \left (5-2 x^2\right )}{108 \left (4-5 x^2+x^4\right )}-\frac {x \left (59 d+380 f+848 h-5 (7 d+28 f+64 h) x^2\right )}{3456 \left (4-5 x^2+x^4\right )}-\frac {(313 d+820 f+1936 h) \tanh ^{-1}\left (\frac {x}{2}\right )}{20736}+\frac {1}{648} (13 d+25 f+61 h) \tanh ^{-1}(x)-\frac {1}{162} (506+2 e+5 g) \log \left (1-x^2\right )+\frac {1}{162} (506+2 e+5 g) \log \left (4-x^2\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.13, size = 261, normalized size = 1.09 \begin {gather*} \frac {-5 d x^3+17 d x-8 e x^2+20 e-8 f x^3+20 f x-20 g x^2+32 g-20 h x^3+32 h x-68 i x^2+80 i}{144 \left (x^4-5 x^2+4\right )^2}+\frac {35 d x^3-59 d x+128 e x^2-320 e+140 f x^3-380 f x+320 g x^2-800 g+320 h x^3-848 h x+704 i x^2-1760 i}{3456 \left (x^4-5 x^2+4\right )}+\frac {\log (1-x) (-13 d-16 e-25 f-40 g-61 h-88 i)}{1296}+\frac {\log (2-x) (313 d+512 e+820 f+1280 g+1936 h+2816 i)}{41472}+\frac {\log (x+1) (13 d-16 e+25 f-40 g+61 h-88 i)}{1296}+\frac {\log (x+2) (-313 d+512 e-820 f+1280 g-1936 h+2816 i)}{41472} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {d+e x+f x^2+g x^3+h x^4+i x^5}{\left (4-5 x^2+x^4\right )^3} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 27.05, size = 616, normalized size = 2.58 \begin {gather*} \frac {60 \, {\left (7 \, d + 28 \, f + 64 \, h\right )} x^{7} + 768 \, {\left (2 \, e + 5 \, g + 11 \, i\right )} x^{6} - 216 \, {\left (13 \, d + 60 \, f + 136 \, h\right )} x^{5} - 5760 \, {\left (2 \, e + 5 \, g + 11 \, i\right )} x^{4} + 756 \, {\left (5 \, d + 36 \, f + 80 \, h\right )} x^{3} + 2304 \, {\left (10 \, e + 25 \, g + 52 \, i\right )} x^{2} + 48 \, {\left (43 \, d - 260 \, f - 656 \, h\right )} x - {\left ({\left (313 \, d - 512 \, e + 820 \, f - 1280 \, g + 1936 \, h - 2816 \, i\right )} x^{8} - 10 \, {\left (313 \, d - 512 \, e + 820 \, f - 1280 \, g + 1936 \, h - 2816 \, i\right )} x^{6} + 33 \, {\left (313 \, d - 512 \, e + 820 \, f - 1280 \, g + 1936 \, h - 2816 \, i\right )} x^{4} - 40 \, {\left (313 \, d - 512 \, e + 820 \, f - 1280 \, g + 1936 \, h - 2816 \, i\right )} x^{2} + 5008 \, d - 8192 \, e + 13120 \, f - 20480 \, g + 30976 \, h - 45056 \, i\right )} \log \left (x + 2\right ) + 32 \, {\left ({\left (13 \, d - 16 \, e + 25 \, f - 40 \, g + 61 \, h - 88 \, i\right )} x^{8} - 10 \, {\left (13 \, d - 16 \, e + 25 \, f - 40 \, g + 61 \, h - 88 \, i\right )} x^{6} + 33 \, {\left (13 \, d - 16 \, e + 25 \, f - 40 \, g + 61 \, h - 88 \, i\right )} x^{4} - 40 \, {\left (13 \, d - 16 \, e + 25 \, f - 40 \, g + 61 \, h - 88 \, i\right )} x^{2} + 208 \, d - 256 \, e + 400 \, f - 640 \, g + 976 \, h - 1408 \, i\right )} \log \left (x + 1\right ) - 32 \, {\left ({\left (13 \, d + 16 \, e + 25 \, f + 40 \, g + 61 \, h + 88 \, i\right )} x^{8} - 10 \, {\left (13 \, d + 16 \, e + 25 \, f + 40 \, g + 61 \, h + 88 \, i\right )} x^{6} + 33 \, {\left (13 \, d + 16 \, e + 25 \, f + 40 \, g + 61 \, h + 88 \, i\right )} x^{4} - 40 \, {\left (13 \, d + 16 \, e + 25 \, f + 40 \, g + 61 \, h + 88 \, i\right )} x^{2} + 208 \, d + 256 \, e + 400 \, f + 640 \, g + 976 \, h + 1408 \, i\right )} \log \left (x - 1\right ) + {\left ({\left (313 \, d + 512 \, e + 820 \, f + 1280 \, g + 1936 \, h + 2816 \, i\right )} x^{8} - 10 \, {\left (313 \, d + 512 \, e + 820 \, f + 1280 \, g + 1936 \, h + 2816 \, i\right )} x^{6} + 33 \, {\left (313 \, d + 512 \, e + 820 \, f + 1280 \, g + 1936 \, h + 2816 \, i\right )} x^{4} - 40 \, {\left (313 \, d + 512 \, e + 820 \, f + 1280 \, g + 1936 \, h + 2816 \, i\right )} x^{2} + 5008 \, d + 8192 \, e + 13120 \, f + 20480 \, g + 30976 \, h + 45056 \, i\right )} \log \left (x - 2\right ) - 9600 \, e - 29184 \, g - 61440 \, i}{41472 \, {\left (x^{8} - 10 \, x^{6} + 33 \, x^{4} - 40 \, x^{2} + 16\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.37, size = 257, normalized size = 1.08 \begin {gather*} -\frac {1}{41472} \, {\left (313 \, d + 820 \, f - 1280 \, g + 1936 \, h - 2816 \, i - 512 \, e\right )} \log \left ({\left | x + 2 \right |}\right ) + \frac {1}{1296} \, {\left (13 \, d + 25 \, f - 40 \, g + 61 \, h - 88 \, i - 16 \, e\right )} \log \left ({\left | x + 1 \right |}\right ) - \frac {1}{1296} \, {\left (13 \, d + 25 \, f + 40 \, g + 61 \, h + 88 \, i + 16 \, e\right )} \log \left ({\left | x - 1 \right |}\right ) + \frac {1}{41472} \, {\left (313 \, d + 820 \, f + 1280 \, g + 1936 \, h + 2816 \, i + 512 \, e\right )} \log \left ({\left | x - 2 \right |}\right ) + \frac {35 \, d x^{7} + 140 \, f x^{7} + 320 \, h x^{7} + 320 \, g x^{6} + 704 \, i x^{6} + 128 \, x^{6} e - 234 \, d x^{5} - 1080 \, f x^{5} - 2448 \, h x^{5} - 2400 \, g x^{4} - 5280 \, i x^{4} - 960 \, x^{4} e + 315 \, d x^{3} + 2268 \, f x^{3} + 5040 \, h x^{3} + 4800 \, g x^{2} + 9984 \, i x^{2} + 1920 \, x^{2} e + 172 \, d x - 1040 \, f x - 2624 \, h x - 2432 \, g - 5120 \, i - 800 \, e}{3456 \, {\left (x^{4} - 5 \, x^{2} + 4\right )}^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.02, size = 554, normalized size = 2.32 \begin {gather*} \frac {11 i \ln \left (x +2\right )}{162}-\frac {11 i \ln \left (x -1\right )}{162}-\frac {11 i \ln \left (x +1\right )}{162}+\frac {11 i \ln \left (x -2\right )}{162}-\frac {121 h \ln \left (x +2\right )}{2592}-\frac {61 h \ln \left (x -1\right )}{1296}+\frac {61 h \ln \left (x +1\right )}{1296}+\frac {121 h \ln \left (x -2\right )}{2592}-\frac {5 g \ln \left (x -1\right )}{162}+\frac {5 g \ln \left (x +2\right )}{162}+\frac {5 g \ln \left (x -2\right )}{162}-\frac {5 g \ln \left (x +1\right )}{162}-\frac {313 d \ln \left (x +2\right )}{41472}+\frac {e \ln \left (x +2\right )}{81}-\frac {e \ln \left (x -1\right )}{81}-\frac {13 d \ln \left (x -1\right )}{1296}-\frac {e \ln \left (x +1\right )}{81}+\frac {13 d \ln \left (x +1\right )}{1296}+\frac {313 d \ln \left (x -2\right )}{41472}+\frac {e \ln \left (x -2\right )}{81}+\frac {205 f \ln \left (x -2\right )}{10368}+\frac {25 f \ln \left (x +1\right )}{1296}-\frac {25 f \ln \left (x -1\right )}{1296}-\frac {205 f \ln \left (x +2\right )}{10368}+\frac {i}{24 x -48}+\frac {h}{48 x +48}+\frac {h}{48 x -48}+\frac {e}{144 x -144}+\frac {d}{432 x +432}+\frac {d}{432 x -432}-\frac {i}{108 \left (x +2\right )^{2}}+\frac {i}{432 \left (x -1\right )^{2}}+\frac {i}{432 \left (x +1\right )^{2}}-\frac {i}{108 \left (x -2\right )^{2}}+\frac {h}{216 \left (x +2\right )^{2}}+\frac {h}{432 \left (x -1\right )^{2}}-\frac {h}{432 \left (x +1\right )^{2}}-\frac {h}{216 \left (x -2\right )^{2}}-\frac {g}{432 \left (x +2\right )^{2}}+\frac {g}{432 \left (x -1\right )^{2}}+\frac {g}{432 \left (x +1\right )^{2}}-\frac {g}{432 \left (x -2\right )^{2}}-\frac {d}{432 \left (x +1\right )^{2}}+\frac {e}{432 \left (x +1\right )^{2}}+\frac {d}{432 \left (x -1\right )^{2}}+\frac {e}{432 \left (x -1\right )^{2}}+\frac {d}{3456 \left (x +2\right )^{2}}-\frac {e}{1728 \left (x +2\right )^{2}}+\frac {f}{864 \left (x +2\right )^{2}}+\frac {f}{432 \left (x -1\right )^{2}}-\frac {f}{432 \left (x +1\right )^{2}}-\frac {f}{864 \left (x -2\right )^{2}}-\frac {d}{3456 \left (x -2\right )^{2}}-\frac {e}{1728 \left (x -2\right )^{2}}-\frac {i}{24 \left (x +2\right )}-\frac {11 i}{432 \left (x +1\right )}+\frac {11 i}{432 \left (x -1\right )}+\frac {11 h}{432 \left (x +2\right )}+\frac {11 h}{432 \left (x -2\right )}-\frac {13 g}{864 \left (x +2\right )}-\frac {7 g}{432 \left (x +1\right )}+\frac {7 g}{432 \left (x -1\right )}+\frac {13 g}{864 \left (x -2\right )}+\frac {19 d}{6912 \left (x +2\right )}-\frac {17 e}{3456 \left (x +2\right )}+\frac {19 d}{6912 \left (x -2\right )}+\frac {17 e}{3456 \left (x -2\right )}-\frac {e}{144 \left (x +1\right )}+\frac {5 f}{432 \left (x -1\right )}+\frac {5 f}{576 \left (x +2\right )}+\frac {5 f}{576 \left (x -2\right )}+\frac {5 f}{432 \left (x +1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.12, size = 238, normalized size = 1.00 \begin {gather*} -\frac {1}{41472} \, {\left (313 \, d - 512 \, e + 820 \, f - 1280 \, g + 1936 \, h - 2816 \, i\right )} \log \left (x + 2\right ) + \frac {1}{1296} \, {\left (13 \, d - 16 \, e + 25 \, f - 40 \, g + 61 \, h - 88 \, i\right )} \log \left (x + 1\right ) - \frac {1}{1296} \, {\left (13 \, d + 16 \, e + 25 \, f + 40 \, g + 61 \, h + 88 \, i\right )} \log \left (x - 1\right ) + \frac {1}{41472} \, {\left (313 \, d + 512 \, e + 820 \, f + 1280 \, g + 1936 \, h + 2816 \, i\right )} \log \left (x - 2\right ) + \frac {5 \, {\left (7 \, d + 28 \, f + 64 \, h\right )} x^{7} + 64 \, {\left (2 \, e + 5 \, g + 11 \, i\right )} x^{6} - 18 \, {\left (13 \, d + 60 \, f + 136 \, h\right )} x^{5} - 480 \, {\left (2 \, e + 5 \, g + 11 \, i\right )} x^{4} + 63 \, {\left (5 \, d + 36 \, f + 80 \, h\right )} x^{3} + 192 \, {\left (10 \, e + 25 \, g + 52 \, i\right )} x^{2} + 4 \, {\left (43 \, d - 260 \, f - 656 \, h\right )} x - 800 \, e - 2432 \, g - 5120 \, i}{3456 \, {\left (x^{8} - 10 \, x^{6} + 33 \, x^{4} - 40 \, x^{2} + 16\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.62, size = 233, normalized size = 0.97 \begin {gather*} \ln \left (x+1\right )\,\left (\frac {13\,d}{1296}-\frac {e}{81}+\frac {25\,f}{1296}-\frac {5\,g}{162}+\frac {61\,h}{1296}-\frac {11\,i}{162}\right )-\ln \left (x-1\right )\,\left (\frac {13\,d}{1296}+\frac {e}{81}+\frac {25\,f}{1296}+\frac {5\,g}{162}+\frac {61\,h}{1296}+\frac {11\,i}{162}\right )-\frac {\left (-\frac {35\,d}{3456}-\frac {35\,f}{864}-\frac {5\,h}{54}\right )\,x^7+\left (-\frac {e}{27}-\frac {5\,g}{54}-\frac {11\,i}{54}\right )\,x^6+\left (\frac {13\,d}{192}+\frac {5\,f}{16}+\frac {17\,h}{24}\right )\,x^5+\left (\frac {5\,e}{18}+\frac {25\,g}{36}+\frac {55\,i}{36}\right )\,x^4+\left (-\frac {35\,d}{384}-\frac {21\,f}{32}-\frac {35\,h}{24}\right )\,x^3+\left (-\frac {5\,e}{9}-\frac {25\,g}{18}-\frac {26\,i}{9}\right )\,x^2+\left (\frac {65\,f}{216}-\frac {43\,d}{864}+\frac {41\,h}{54}\right )\,x+\frac {25\,e}{108}+\frac {19\,g}{27}+\frac {40\,i}{27}}{x^8-10\,x^6+33\,x^4-40\,x^2+16}+\ln \left (x-2\right )\,\left (\frac {313\,d}{41472}+\frac {e}{81}+\frac {205\,f}{10368}+\frac {5\,g}{162}+\frac {121\,h}{2592}+\frac {11\,i}{162}\right )-\ln \left (x+2\right )\,\left (\frac {313\,d}{41472}-\frac {e}{81}+\frac {205\,f}{10368}-\frac {5\,g}{162}+\frac {121\,h}{2592}-\frac {11\,i}{162}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________